package com.esms.esmsadmin.utils;

import com.esms.esmsadmin.entity.AdminEntity;
import org.springframework.security.core.context.SecurityContextHolder;


public class AdminUtils {
    public static AdminEntity getCurrentAdmin(){
        return ((AdminEntity) SecurityContextHolder.getContext().getAuthentication().getPrincipal());
    }
}
